<#function getLabel comment propName>
    <#if comment?? && !comment?string?trim?has_content>
        <#return propName>
    <#else>
        <#if comment?contains(";")>
            <#return comment?split(';')[0]>
        <#elseif comment?contains("，")>
            <#return comment?split('，')[0]>
        <#elseif comment?contains(",")>
            <#return comment?split(',')[0]>
        <#else>
            <#return comment>
        </#if>
    </#if>
</#function>

<#function isIgnProp propertyName>
    <#assign ignPropList=["id","deleteFlag","createTime","updateTime","creator","creatorId","updator","updatorId","companyId","version"]/>
    <#if ignPropList?seq_contains(propertyName)>
        <#return true>
    <#else>
        <#return false>
    </#if>
</#function>

<#function getLen type>
    <#if type=='text'>
        <#return 400>
    <#elseif type=='datetime' || type=='timestamp' || type=='date' || type=='time'>
        <#return 150>
    <#elseif type=='int' || type=='bigint'>
        <#return 80>
    <#elseif type?contains('varchar')>
        <#return 150>
    <#else>
        <#return 100>
    </#if>
</#function>

